package com.zc.controller;

import com.utils2.Tool;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LWY
 */
@RestController
@CrossOrigin(origins = "*") // 允许所有域名进行跨域调用
public class Controller {
    Tool tool = new Tool();

    @GetMapping("/hello")
    public String hello() throws Exception {
        return tool.getJsonStr();
    }
}